package com.kac.service;

import com.codingapi.txlcn.commons.annotation.LcnTransaction;
import com.kac.feign.ProductFeignClient;
import com.kac.feign.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Qilin
 * @date: 2019/01/16
 */
@Service

public class UserServiceImpl  implements  UserService    {
    @Autowired
    private UserFeignClient userFeignClient;
    @Autowired
    private ProductFeignClient productFeignClient;

    @Override
    @LcnTransaction
    public String save() {
            String a=  this.userFeignClient.save();

            String b=  this.productFeignClient.save();


            return a+" "+b;
    }

    @Override
    public String test() {
        return "qweqwe";
    }
}
